"""
判断递增
"""
# n = int(input())
# first = -99
# for _ in range(n):
#     num = int(input())
#     #判断这个数是不是第一次输入的
#     if first == -99: #说明是第一次输入
#         first = num 
#     else: #说明不是第一次输入
#         if first > num:
#             print("不是递增序列")
#             break
# else:
#     print("是递增序列")

"""
密码案例
3次冻结
"""        
#假设密码是123456
# passwd = "123456"
# #标记剩余次数
# count = 3
# for _ in range(3):
#     user_passwd = input()
#     #输入一次减少一次
#     count -= 1
#     if user_passwd == passwd:
#         print("密码输入正确，登陆成功")
#         break
#     else:
#         print(f'密码输入错误，还剩{count}次机会')
# #没有执行break才执行else
# else:
#     print("账户被冻结！")
"""
判断素数
素数只能被1和它本身整除
"""
# num = int(input())
# for i in range(2, num):
#     if num % i == 0:
#         print("不是素数")
#         break
# else:
#     print("是素数")

"""
输出100以内不能被3 和5整除的数
"""
# for num in range(1, 101):
#     if num % 3 != 0 and num % 5 != 0:
#         print(num)
"""
求正数的平均数 把0当正数
"""
#规定输入数据的个数n
# n = int(input())
# #正数的个数
# count = 0
# #正数的和
# positive_sum = 0

# for _ in range(n):
#     num = int(input())
#     if num >= 0:
#         count += 1
#         positive_sum += num
# print(positive_sum / count)
"""
打印正直三角
*
**
***
****
*****
"""
# #line 1
# for i in range(1):
#     print("*", end = "")
# print("")

# #line 2
# for i in range(2):
#     print("*", end = "")
# print("")

# #line 3
# for i in range(3):
#     print("*", end = "")
# print("")

# #line 4
# for i in range(4):
#     print("*", end = "")
# print("")

# #line 5
# for i in range(5):
#     print("*", end = "")
# print("")

# for i in range(1, 6):
#     for j in range(i):
#         print("*", end = "")
#     print("")
"""
打印反直角三角形
    *
   **
  ***
 ****
*****
"""
# #line 1
# for i in range(4):
#     print(" ", end = "")
# for i in range(1):
#     print("*", end = "")
# print("")

# #line 2
# for i in range(3):
#     print(" ", end = "")
# for i in range(2):
#     print("*", end = "")
# print("")

# #line 3
# for i in range(2):
#     print(" ", end = "")
# for i in range(3):
#     print("*", end = "")
# print("")

# #line 4
# for i in range(1):
#     print(" ", end = "")
# for i in range(4):
#     print("*", end = "")
# print("")

# #line 3
# for i in range(5 - n):
#     print(" ", end = "")
# for i in range(n):
#     print("*", end = "")
# print("")


# for n in range(1, 6):
#     for i in range(5 - n):
#         print(" ", end = "")
#     for i in range(n):
#         print("*", end = "")
#     print("")
"""
    *         1
   ***        3      
  *****       5
 *******      7
*********     9
2n - 1
"""
# #line 1
# for i in range(4):
#     print(" ", end = "")
# for i in range(1):
#     print("*", end = "")
# print("")

# #line 2
# for i in range(3):
#     print(" ", end = "")
# for i in range(3):
#     print("*", end = "")
# print("")

# #line 3
# for i in range(2):
#     print(" ", end = "")
# for i in range(5):
#     print("*", end = "")
# print("")

# #line 4
# for i in range(1):
#     print(" ", end = "")
# for i in range(7):
#     print("*", end = "")
# print("")

# #line 5
# for i in range(0):
#     print(" ", end = "")
# for i in range(9):
#     print("*", end = "")
# print("")

# for n in range(1, 6):
#     for i in range(5 - n):
#         print(" ", end = "")
#     for i in range(2 * n - 1):
#         print("*", end = "")
#     print()
#while
"""
找前五十个素数
"""
# #计算素数的个数
# count = 0
# #求素数从2开始
# num = 2
# while count < 50:
#     for i in range(2, num // 2 + 1):
#         if num % i == 0:
#             break
#     else:
#         count += 1
#         print(num, end = " ")
#         if count % 5 == 0:
#             print()
#     num += 1
#while-True格式
# while True:
#     #循环的开始
#     expression = input("请输入一个公式：")
#     #循环的终止条件
#     if expression == "EOF" or expression == "exit":
#         print("程序结束！")
#         break
#     #循环体
#     print(eval(expression))
expression = input("请输入一个公式：")
while expression != "EOF" or expression != "exit":
    print(eval(expression))
    expression = input("请输入一个公式：")